<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="{$Think.config.web_root}Public/js/jquery-1.8.3.min.js"></script>
<title>无标题文档</title>
<style type="text/css">
body{ font:16px '微软雅黑';}
#chStyle{}
#chStyle ul{
	margin:0; padding:0;
	list-style:none;
	width:302px; height:30px;
	white-space:nowrap;
}
#chStyle li{
	width:100px; height:27px;
	background-color:#CCC;
	margin:0; float:left;
	cursor:default;
	padding:3px 0 0 0;
}
#chStyle li:hover{ background-color:#BBB;}
#chStyleli101{ border-bottom-left-radius:3px; border-top-left-radius:3px; border-right:#666 1px solid;}
#chStyleli102{ border-right:#666 1px solid;}
#chStyleli103{ border-bottom-right-radius:3px; border-top-right-radius:3px;}
#chStyle form{ width:300px; height:0px; overflow:hidden; margin:0; padding:0; margin-top:5px;}
.text01{ width:200px; height:25px; margin:0; padding:0;}
.button01{ width:80px; height:29px; margin:0; padding:0; border:#999 1px solid; border-left:0; background-color:#FFF;}
</style>
</head>

<body>
<div id="chStyle" align="center">
	<ul>
    	<li id="chStyleli101">button01</li>
        <li id="chStyleli102">button02</li>
        <li id="chStyleli103">button03</li>
    </ul>
    <form action="" method="post">
    <input type="text" name="theDay" class="text01" /><input type="submit" value="确认" class="button01" />
    </form>
</div>
</body>
<script language="javascript">
var timeNum=0;
$("#chStyleli103").click(function(){
	timeNum++;
	if(timeNum%2==1){
		$("#chStyle form").animate({height:30},200);
	}else{
		$("#chStyle form").animate({height:0},200);
	}
});
</script>
</html>